package com.ocean;

import com.ocean.constants.ApplicationConstants;
import com.ocean.loader.BlockLoader;
import com.ocean.loader.ItemLoader;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

/**
 * Main Class
 *
 * @author zhang
 * @since 2021/8/12
 **/
@Mod(value = ApplicationConstants.MOD_ID)
public class OceanApplication {

    public OceanApplication() {
        MinecraftForge.EVENT_BUS.register(this);
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        BlockLoader.BLOCKS.register(modEventBus);
        ItemLoader.ITEMS.register(modEventBus);
    }
}
